﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InfoContainer1_2_bak.ascx.cs" Inherits="Rison.Web.ascx.InfoContainer1_2" %>
<asp:DataList ID="dlInfos" runat="server" OnItemDataBound="dlInfos_OnItemDataBound" GridLines="none" Width="100%">
    <ItemTemplate>
        <table cellpadding="0" cellspacing="0" style="border:1px solid #aed8ee;" height:<%=tableHeight %>px" width="<%=tableWidth %>px">
            <tr style="width:100%;height:27px;background-color:#ddeff9; ">
                <td valign="bottom">
                    <table cellpadding="0" cellspacing="0" border="0" align="center">
                        <tr style=" background:url(<%=UrlBase %>style/image/index4/titleBg1.gif);">
                            <td style="width:10px;" >&nbsp;</td>
                            <td width="<%=titleWidth %>" align="left" style="line-height:26px;" >
                                <span style="color:#2f88c2;font-weight:bold;font-size:13px; display:none;"><%# DataBinder.Eval(Container.DataItem, "Title")%></span>
                                <a href="<%=UrlBase %>view/ModuleInfosView.aspx?mid=<%# DataBinder.Eval(Container.DataItem, "mid")%>" style="height:21px;color:#2f88c2; line-height:21px; font-size:12px; font-weight:bold; text-decoration:none;"><%# DataBinder.Eval(Container.DataItem, "title")%></a>
                            </td>
                            <td style="width:50px;height:26px;" align="center" valign="middle">
                                <img alt="更多..." src="<%=UrlBase %>style/image/more3.gif" style="width:36px; height:6px; border:0px; cursor:pointer;"
                                     onclick="location.href='<%=UrlBase %>view/ModuleInfosView.aspx?mid=<%# DataBinder.Eval(Container.DataItem, "mid")%>';" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="background-color:#ddeff9;height:<%=contentRowHeitht %>">
                <td  valign="top" style="line-height:21px;">
                <marquee behavior="scroll" direction="up" width="100%" height="<%=contentRowHeitht %>" scrollamount="1" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">
                    <asp:GridView ID="gvInfos" runat="server" AllowPaging="false" AllowSorting="false" AutoGenerateColumns="false" 
                        Width="100%" ShowHeader="false" GridLines="none" RowStyle-Height="20px" RowStyle-VerticalAlign="Middle" CssClass="infoContainer" >                        
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="16px" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <img alt="" src="<%=UrlBase %>style/image/dian.gif" width="4px" height="4px"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate>
                                    <a href="<%=UrlBase %>view/InfoBrowseView.aspx?infoId=<%# DataBinder.Eval(Container.DataItem, "InfoId")%>&mid=<%# DataBinder.Eval(Container.DataItem, "moduleId")%>" target="_blank"><asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Subject")%>'></asp:Label></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="cdate" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center" ItemStyle-Font-Size="12px"  />
                        </Columns>
                    </asp:GridView>
                </marquee>
                </td>                
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>